<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/include.inc.jsp" %>
<!DOCTYPE html>

<html>
<head>
    <%@include file="/WEB-INF/views/layout/customsPortal/base.ref.jsp" %>
    <%@include file="/WEB-INF/views/layout/datepicker.ref.jsp" %>
</head>
<body>
<%@include file="/WEB-INF/views/sys/frame/toolbar.jsp" %>
<div class="page-content">

    <%--<div class="page-header">--%>

        <%--<shiro:hasPermission name="basicBrowsingHistory:del">--%>
            <%--<a class="mbtn delete" href="#"--%>
               <%--onclick="bootstrapDel_OnClick('${ctx}/order/outinfo/del','checkboxid')"--%>
               <%--title="确定要删除吗?"> <span>删除</span>--%>
            <%--</a>--%>
        <%--</shiro:hasPermission>--%>

    <%--</div>--%>
    <div class="row form-horizontal">
        <div class="col-xs-12">
            <div class="space-4"></div>
            <form method="post" id="pagerForm"
                  action="${ctx}/Api/BasicBrowsingHistory/historyList">
                <input type="hidden" name="ifSession" value="1"/>
                <div class="form-group">
                    <label class="col-sm-1 control-label no-padding-right">浏览人：</label>
                    <div class="col-sm-1" style="width: 180px;">
                        <input id = "arg1" type="text" name="arg1" value="${vo.arg1}"/>
                    </div>
                    <label class="col-sm-1 control-label no-padding-right">浏览时间：</label>
                    <div class="col-sm-4">
                        <input type="text" id="arg2" name="arg2"
                               onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${vo.arg2}"/>
                        ~ <input type="text" id="arg3" name="arg3"
                                 onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${vo.arg3}"/>
                    </div>
                    <a class="mbtn query" href="#" onclick="queryClick('pagerForm')"><span>查询</span></a>
                   <%-- <a class="mbtn query" href="#" onclick="queryClick('pagerForm2')"><span>运输单查询</span></a>--%>
                </div>
            </form>
            <div class="space-4"></div>
            <table id="grid">
            </table>

        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        var cols = [
            {title: '类别', field: 'typeName', align: 'center', valign: 'middle', sortable: true},
            {title: '模块名称', field: 'ctNoticeTypeName', align: 'center', valign: 'middle', sortable: true},
            {title: '标题', field: 'title', align: 'center', valign: 'middle', sortable: true},
            {title: '浏览人', field: 'scanner', align: 'center', valign: 'middle', sortable: true},
            {title: '浏览时间', field: 'scannerTime', align: 'center', valign: 'middle', sortable: true}
        ];
        var data = JSON.parse('${list}');
        console.log(data);
        meeting.grid("#grid", cols, data)
    });
</script>
